<?php
/**
 * Created by PhpStorm.
 * User: yanghe
 * Date: 2016/4/26
 * Time: 14:22
 */
namespace MyClass\Collect;

use Illuminate\Support\Facades\DB;

class CollectBase
{
    public static function addCollect($data)
    {
        $res=DB::table("collect")->insert($data);
        if($res)
        {
            return true;
        }
        else
        {
            return false;
        }
    }
}